<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich" >

<h:panelGroup id="notificacaoPanel">
    <f:subview id="notificacao" 
            rendered="#{notificacaoController.temNotificacao}">
	<div id="aviso">
	    <h:outputText value="#{notificacaoController.notificacao}" />
	</div>
	<script type="text/javascript">
	//<![CDATA[
	    function _aviso() {
	        document.getElementById('aviso').style.display = 'none';
	        //$('#aviso').css('display', 'none');
	    }
	    setTimeout('_aviso()', 5000);
	//]]>
	</script>
    </f:subview>
</h:panelGroup>

</html>